{% extends "layout.html" %}
{% load static %}



{% block css %}
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-datepicker/css/bootstrap-datepicker.min.css' %}">
{% endblock %}

{% block content %}
<div>
    <div class="container">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">数据看板</h3>
            </div>

            <div class="panel-body">
                <div class="row">
{#                    <div class="col-md-4">#}
{#                        <li>今日</li>#}
{#                        <li>近7日</li>#}
{#                        <li>近一月</li>#}
{#                        <li>自定义日期</li>#}
{#                    </div>#}

                    <div class="col-md-12">
                        {#                        <div>总流水：{{ total_liushui }}</div>#}
                        {#                        <div>小猫的总单数：{{ total_num }},其中点券单数{{ game_num_小猫  }}，其中话费单数{{ huafei_num_小猫  }}</div>#}
                        {#                        <div>小猫的供应商的总单数：{{ total_供应商 }}，其中点券订单{{ game_tokens_供应商 }}，其中话费订单{{ phone_charge_供应商 }}</div>#}
                        {#                        <div>小猫的客服的总单数：{{ total_客服 }}，其中点券订单{{ game_tokens_客服 }}，其中话费订单{{ phone_charge_客服 }}</div>#}

                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>用户名</th>
                                <th>账户余额</th>
                                <th>流水总金额</th>
                                <th>出库订单总数</th>
                                <th>点券订单总数</th>
                                <th>话费订单总数</th>
                                <th>点券金额</th>
                                <th>话费金额</th>
                                <th>系统费</th>
                            </tr>
                            </thead>

                            <tbody>
                            <tr>
                                
                                <td>{{ user_data_object.id }}</td>
                                <td>{{ user_data_object.name }}</td>
                                <td>{{ user_data_object.userinfo.account }}</td>
                                <td>{{ user_data_object.total_all_fee }} </td>

                                <td>{{ user_data_object.total_all_order_num }}</td>

                                <td>{{ user_data_object.total_game_num }}</td>
                                    <td>{{ user_data_object.total_phone_num }}</td>

                                <td>{{ user_data_object.total_game_fee }}</td>
                                <td>{{ user_data_object.total_phone_fee }}</td>

                                    <td>{{ user_data_object.system_fee }}</td>

                               
                            </tr>

                            </tbody>
                        </table>
                    </div>
                </div>


            </div>
        </div>
    </div>
</div>


{% endblock %}